<?php
// +----------------------------------------------------------------------
// | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
// +----------------------------------------------------------------------
// | File name: ApiLog.php
// +----------------------------------------------------------------------
// | Author: liuju
// +----------------------------------------------------------------------
// | Description: 描述文档功能
// +----------------------------------------------------------------------
// | Others: 其他内容的说明
// +----------------------------------------------------------------------
// | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
// +----------------------------------------------------------------------
// | 1.Date: 2019-03-04 Author: liuju Modification: 创建
// +----------------------------------------------------------------------

namespace App\ModelTransfers\WsFund;


use App\ModelTransfers\Base;

class ApiLog extends  Base
{
 protected $table = 'ws_fund.api_log';


 public function  scopeGetResponse($query,array $applyId)
 {
  return $query->where('biz_type','=','queryLoanResult')
      ->where('track','=','fundSystem')
      ->where('resp_code', '=', '200')
      ->whereIn('order_id',$applyId)->addSelect('response','order_id');
 }
}